package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据采集结果汇总对象 data_collection
 * 
 * @author ruoyi
 * @date 2024-01-22
 */
public class DataCollection extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 管道Id */
    @Excel(name = "管道Id")
    private String pipeId;

    /** 本次采集的数量 */
    @Excel(name = "本次采集的数量")
    private Long num;

    /** 本次采集开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "本次采集开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 本次采集结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "本次采集结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date created;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updated;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setPipeId(String pipeId) 
    {
        this.pipeId = pipeId;
    }

    public String getPipeId() 
    {
        return pipeId;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setCreated(Date created) 
    {
        this.created = created;
    }

    public Date getCreated() 
    {
        return created;
    }
    public void setUpdated(Date updated) 
    {
        this.updated = updated;
    }

    public Date getUpdated() 
    {
        return updated;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pipeId", getPipeId())
            .append("num", getNum())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("created", getCreated())
            .append("updated", getUpdated())
            .toString();
    }
}
